home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 347 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: redstone.interpath.net!usenet
  2. From: fortunat@interpath.com (Jumpstile Turner)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  4. Subject: IJG JPEG Engine and Win32
  5. Date: 3 Jan 1996 19:48:43 GMT
  6. Organization: Completely unorganized
  7. Message-ID: <4cemir$6vb@redstone.interpath.net>
  8. NNTP-Posting-Host: fortunat.pdial.interpath.net
  9. X-Newsreader: WinVN 0.99.7
  10.  
  11.   Hi all.  Has anyone successfully compiled and linked the IJG JPEG engine 
  12. with a Win32 compiler?  I can compile it fine and the resulting LIB file works 
  13. great when linking it into the included test applications; however, if I try 
  14. to link it with my GUI apps I get some really odd errors.   It links fine but 
  15. doesn't work! I'm using Borland C++ 4.52 (maybe this is my problem. (-: )    
  16. Basically stepping through with the debugger there is an assignment statement 
  17. in one of the modules that just doesn't do anything.  I mean nothing.  If I do 
  18. the assignment by hand with the debugger it works.  For example, the 
  19. assignment is as follows:
  20.  
  21.  cinfo->output_width = cinfo->image_width;
  22.  
  23. cinfo->output_width is 0 and cinfo->image_width is say 289.  After the above 
  24. assignment nothing changes.   I'm far from a c++ expert and I've never 
  25. encountered something like this before.  If someone has compiled this lib 
  26. under Win32 I'd appreciate it if they could mail it my way.  I'd like to see 
  27. if its my compiler settings or just my ignorance. ;)   The big problem I can't 
  28. figure is that the compiled lib works fine linked with the test programs.  I 
  29. tried copying the code from the examples line for line but it just won't work 
  30. under the GUI.
  31.  
  32.                        -Scott
  33. ------------------------------------------------
  34. Jumpstile Turner
  35. fortunat@interpath.com
  36. "Sing the Hare Hare, Dance the Hoochie Koo..."
  37. ------------------------------------------------
  38.  
  39.